package cc.fathervideoplayer

import android.os.Bundle
import android.util.Log
import android.widget.EditText
import android.widget.ListView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import java.io.File

private const val TAG = "SearchActivity"
class SearchActivity : AppCompatActivity() {
    val et by lazy {
        findViewById<EditText>(R.id.etSearch)
    }
    private val lvSearch by lazy {
        findViewById<ListView>(R.id.lvSearch)
    }
    var movieList = mutableListOf<File>()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        intent.getSerializableExtra("data")?.let {
            Log.d(TAG, "onCreate: ")
        }
        enableEdgeToEdge()
        setContentView(R.layout.activity_search_actity)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
}